SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE dbo.[DnnProduct_CDS_CategoriesCountChildren]
   @DistributorID varchar(50),
   @ParentID int
AS
BEGIN
	SELECT COUNT(*)
	FROM [DnnProduct_CDS_Categories]
	WHERE DistributorID = @DistributorID AND ParentID = @ParentID
END
GO
